package com.todod.model;

import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

@TableName("LTCLOUD_ZSGL_DB_DEV.base_notice")
public class BaseNotice {
	/** 主键 */
	@TableId("bg_pk_id")
	private Long id;
	/** 项目id */
	@TableField("bg_xm_id")
	private Long xmId;
	/** 标题 */
	@TableField("bg_title_te")
	private String title;
	/** 类型： */
	@TableField("bg_type_k1")
	private String type;
	/** 发布时间 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@TableField("bg_fabu_da")
	private LocalDate fabuTime;
	/** 来源 */
	@TableField("bg_source_te")
	private String source;
	/** 内容 */
	@TableField("bg_neirong_te")
	private String neiRong;
	/** 状态 */
	@TableField("bg_status_k1")
	private String status;
	/** 创建用户id */
	@TableField("bg_create_user_id")
	private Long createUserId;
	/** 创建时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("bg_create_time")
	private LocalDateTime createTime;
	/** 修改用户名id */
	@TableField("bg_modify_user_id")
	private Long modifyUserId;
	/** 修改时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField("bg_modify_time")
	private LocalDateTime modifyTime;

	/** 项目name */
	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String xmName;
	@TableField(exist = false) // 表示该属性在数据表里不存在
	private String createUserName;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getXmId() {
		return xmId;
	}

	public void setXmId(Long xmId) {
		this.xmId = xmId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public LocalDate getFabuTime() {
		return fabuTime;
	}

	public void setFabuTime(LocalDate fabuTime) {
		this.fabuTime = fabuTime;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getNeiRong() {
		return neiRong;
	}

	public void setNeiRong(String neiRong) {
		this.neiRong = neiRong;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public Long getModifyUserId() {
		return modifyUserId;
	}

	public void setModifyUserId(Long modifyUserId) {
		this.modifyUserId = modifyUserId;
	}

	public LocalDateTime getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}

	public String getXmName() {
		return xmName;
	}

	public void setXmName(String xmName) {
		this.xmName = xmName;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	@Override
	public String toString() {
		return "BaseNotice [id=" + id + ", xmId=" + xmId + ", title=" + title + ", type=" + type + ", fabuTime="
				+ fabuTime + ", source=" + source + ", neiRong=" + neiRong + ", status=" + status + ", createUserId="
				+ createUserId + ", createTime=" + createTime + ", modifyUserId=" + modifyUserId + ", modifyTime="
				+ modifyTime + "]";
	}

}
